from spirems import Subscriber

def callback_f(msg):
    print(msg)

sub = Subscriber('/topic/pose', 'geometry_msgs::Pose', callback_f)
